package com.cheng;

import com.cheng.event.SignPublisher;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//设置开启定时任务
@EnableScheduling
public class SignerApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SignerApplication.class, args);
        SignPublisher bean = run.getBean(SignPublisher.class);
        bean.publisher("兄弟发任务了");
//        System.out.println("==========================Mybatis Plus 学习调试");
//        TableInfo table = SqlHelper.table(Tieba.class);
//        System.out.println(table);
//        TableInfo tableUser = SqlHelper.table(Users.class);
//        System.out.println(tableUser);
    }
}
